package com.example.shop_2304.room

import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 评论实体类   id为主键  评论头像  评论人昵称(可显示uid 或者phone 能根据这个值找到对应用户) 评论内容  评论图片(最多3个) 评论时间
 */
@Entity(tableName = "comment")
data class Comment(
    @PrimaryKey(autoGenerate = true)
    var id:Int,
    var image:String,
    var name:String,
    var phone:String,
    var msg:String,
    var pic_one:String?,//图片1  可以不传
    var pic_two:String?,
    var pic_three:String?,
    var time:String
)
